# Contributor: Philipp Glaum <p@pglaum.de>
# Maintainer: Philipp Glaum <p@pglaum.de>
pkgname=mnamer
_pkgname=mnamer
pkgver=2.5.5
pkgrel=1
pkgdesc="media file organiser"
options="!check" # No testsuite
url="https://pypi.org/project/mnamer/"
# loongarch64: blocked by py3-requests-cache
arch="noarch !loongarch64"
license="MIT"
depends="py3-appdirs py3-guessit py3-requests py3-requests-cache py3-teletype"
makedepends="py3-setuptools py3-gpep517 py3-installer py3-wheel"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
f5d197c57c76474f0b4ae07a39333bc0ebbd5dec858593b602e9b19b7a7bfb64e4b04cf2a98197fecf0a3c1f49b55214e72c67dc3250200acf737cb626c2a980  mnamer-2.5.5.tar.gz
"
